package chuanshu;


import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;


public class Text {

    public static void duzhuan() {
        File file = new File("D:/1.txt");
        BufferedReader br = null;
        try {
            br = new BufferedReader(new FileReader(file));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        List<Integer> list = new ArrayList<Integer>();
        String tmp = null;
        while(true){
            try {
                if (!((tmp = br.readLine()) != null)) break;
            } catch (IOException e) {
                e.printStackTrace();
            }
            list.add(Integer.parseInt(tmp));
        }
        try {
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

        }
    }



